package com.fred.backjava.manage.websocket.disruptor;

import com.fred.backjava.manage.websocket.model.PictureEditRequestMessage;
import com.fred.backjava.model.entity.User;
import lombok.Data;
import org.springframework.web.socket.WebSocketSession;

/**
 * @author Fred
 * @version 1.0
 * @date 2025/4/28 21:06
 */
//充当上下文容器，所有处理消息所需的数据都封装在其中
@Data
public class PictureEditEvent {

    /**
     * 消息
     */
    private PictureEditRequestMessage pictureEditRequestMessage;

    /**
     * 当前用户的 session
     */
    private WebSocketSession session;

    /**
     * 当前用户
     */
    private User user;

    /**
     * 图片 id
     */
    private Long pictureId;

}

